#!/bin/bash

# Program:
#     Use function to repeat information.
# History:
#     2015/08/25    wxb    First release

function printit(){
    echo -n "Your choice is "                 # -n : print at the same line
}

echo "This program will print your selection !"

case $1 in
    "one")
        printit; echo $1 | tr 'a-z' 'A-Z'    # tr : translate
        ;;
    "two")
        printit; echo $1 | tr 'a-z' 'A-Z'
        ;;
    "three")
        printit; echo $1 | tr 'a-z' 'A-Z'
        ;;
    *)
        echo "Usage $0 {one|two|three}"
        ;;
esac
